package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.SysTeacherUser;

/**
 * 用户与教师关系Mapper接口
 * 
 * @author ruoyi
 * @date 2024-02-16
 */
public interface SysTeacherUserMapper 
{
    /**
     * 查询用户与教师关系
     * 
     * @param teacherId 用户与教师关系主键
     * @return 用户与教师关系
     */
    public SysTeacherUser selectSysTeacherUserByTeacherId(Long teacherId);

    /**
     * 查询用户与教师关系
     *
     * @param UserId 用户与教师关系主键
     * @return 用户与教师关系
     */
    public Long selectSysTeacherUserByUserId(Long UserId);

    /**
     * 查询用户与教师关系列表
     * 
     * @param sysTeacherUser 用户与教师关系
     * @return 用户与教师关系集合
     */
    public List<SysTeacherUser> selectSysTeacherUserList(SysTeacherUser sysTeacherUser);

    /**
     * 新增用户与教师关系
     * 
     * @param sysTeacherUser 用户与教师关系
     * @return 结果
     */
    public int insertSysTeacherUser(SysTeacherUser sysTeacherUser);

    /**
     * 修改用户与教师关系
     * 
     * @param sysTeacherUser 用户与教师关系
     * @return 结果
     */
    public int updateSysTeacherUser(SysTeacherUser sysTeacherUser);

    /**
     * 删除用户与教师关系
     * 
     * @param teacherId 用户与教师关系主键
     * @return 结果
     */
    public int deleteSysTeacherUserByTeacherId(Long teacherId);

    /**
     * 批量删除用户与教师关系
     * 
     * @param teacherIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysTeacherUserByTeacherIds(Long[] teacherIds);
}
